const user = {
    namespaced: true,
    state: {
        userCount: 100
    },
    mutations: {
        increment(state) {
            state.userCount++
        }
    },
    getters: {
        doubleCount(state) {
            return state.appCount * 2
        }
    },
    actions: {
        asyncAppCountAlert({state}) {
            setTimeout(()=> {
                alert(state.appCount);
            },2000);
        }
    }
}

export default user